package com.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.beans.Person;
import com.service.config.Config;

@Controller
public class PayController {
	@Autowired
	private Config config;

	@RequestMapping("/pay")
	public void payServcie(HttpServletRequest request) {
		System.out.println(config.getUser());
		System.out.println("aaaa");
	}

	@ResponseBody
	@RequestMapping("/pay2")
	public Person payServcie2(HttpServletRequest request) {

		return new Person("aa", "11");
	}
}
